home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
8bitfiles.net/archives
/
archives.tar
/
archives
/
genie-commodore-file-library
/
C64Demos
/
UNODEMO3.SDA
/
BORDER DEMO
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2019-04-13
|
513b
|
25 lines
10 IF X = 0 THEN X =1:LOAD "BORDER",8,1
20 SYS 49152:S$="UP"
30 PRINT "[147]BORDER/SCREEN DEMO"
40 PRINT "1. SCROLL UP"
50 PRINT "2. SCROLL DOWN"
55 PRINT "3. REBOOT DISK"
60 GETA$:IF A$ = "" THEN GOSUB 100
70 IF A$ = "1" THEN S$ = "UP"
80 IF A$ = "2" THEN S$ = "DN"
85 IF A$ = "3" THENSYS49155:POKE53280,12:POKE53281,12:LOAD "@0:*",8
90 GOTO 60
100 IF S$ = "UP" THEN GOSUB 200
110 IF S$ = "DN" THEN GOSUB 300
120 RETURN
200 FOR X = 49185 TO 49195
210 IF PEEK(X) = 0 THEN POKE X,255:GOTO230
220 POKE X,PEEK(X)-1
230 NEXTX
240 RETURN
300 FOR X = 49185 TO 49195
310 IF PEEK(X) = 255 THEN POKEX,0:GOTO330
320 POKE X,PEEK(X)+1
330 NEXTX
340 RETURN